package com.dogborther.utils;

import com.dogborther.pojo.*;

public class PhilosopherCreateFactory {
    public static Philosopher getPhilosopherBySelectMode(Integer index){
        switch (index){
            case 0:
                return new Mode0Philosopher();
            case 1:
                return new Mode1Philosopher();
            case 2:
                return new Mode2Philosopher();
            case 3:
                return new Mode3Philosopher();
        }
        return null;
    }
}
